Release 10.1A: OpenEdge Application Server:
Developing WebSpeed Applications


output-http-header

This function outputs the specified HTTP header with an associated value followed by a carriage return and linefeed. If the header name is blank, then the value and carriage return\linefeed pair are still output.

Location: web\method\cgiutils.i

Parameters:

INPUT p_header AS CHARACTER

The HTTP Header name.

INPUT p_value AS CHARACTER

The header value.

Returns: CHARACTER

Notes: This procedure must be executed before the output-content-type function.

Examples:

This should cause the Web server to do an internal redirection for the specified URL in the location header, as shown:

output-http-header("Status":U, "302 Redirect":U).
output-http-header("Location":U, "\cgi-bin\demo.sh\restart.w":U).
output-http-header("", ""). 

See also:

output-content-type


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095